package com.aat.dxfy.concurrent.future;

import java.util.concurrent.Callable;

public class TaskCallable implements Callable<String> {
	private int id;

	public TaskCallable(int id) {
		this.id = id;
	}

	@Override
	public String call() throws Exception {
		System.out.println("do start " + id);
		Thread.sleep(3000);
		System.out.println("do end " + id);
		return "result " + id;
	}
}